Skip to content

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Sep 1, 2025

Fix some Ql4Ql violations based on the following checks

  • ql/field-only-used-in-charpred
  • ql/could-be-cast
  • ql/counting-to-zero
  • ql/dataflow-module-naming-convention
  • ql/if-with-none
  • ql/missing-parameter-qldoc
  • ql/misspelling

DCA looks good.

@github-actions github-actions bot added the JS label Sep 1, 2025
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Sep 2, 2025
@michaelnebel michaelnebel marked this pull request as ready for review September 2, 2025 07:55
@michaelnebel michaelnebel requested a review from a team as a code owner September 2, 2025 07:55
@michaelnebel michaelnebel requested review from Copilot and removed request for a team September 2, 2025 07:55
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes various Ql4Ql violations across JavaScript CodeQL files, focusing on code quality improvements including naming conventions, spelling corrections, and code simplification.

Key changes include:

  • Renaming dataflow configuration modules to follow naming conventions
  • Correcting spelling from British "modelling" to American "modeling" and fixing other typos
  • Refactoring code to eliminate unused private fields

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
javascript/ql/test/library-tests/FlowSummary/test.ql Renamed dataflow configuration modules to follow naming conventions
javascript/ql/src/Declarations/UnreachableMethodOverloads.ql Removed unused private field by inlining variable declaration
javascript/ql/lib/semmle/javascript/security/TaintedUrlSuffixCustomizations.qll Fixed spelling error: "preverse" to "preserve"
javascript/ql/lib/semmle/javascript/internal/flow_summaries/Strings.qll Fixed spelling: "modelling" to "modeling" and "behaviour" to "behavior"
javascript/ql/lib/semmle/javascript/internal/flow_summaries/Sets.qll Fixed spelling: "modelling" to "modeling"
javascript/ql/lib/semmle/javascript/internal/flow_summaries/Promises.qll Fixed spelling: "modelling" to "modeling"
javascript/ql/lib/semmle/javascript/internal/flow_summaries/Maps.qll Fixed spelling: "modelling" to "modeling"
javascript/ql/lib/semmle/javascript/internal/flow_summaries/Iterators.qll Fixed spelling: "modelling" to "modeling"
javascript/ql/lib/semmle/javascript/internal/flow_summaries/Generators.qll Fixed spelling: "modelling" to "modeling"
javascript/ql/lib/semmle/javascript/internal/flow_summaries/AsyncAwait.qll Fixed spelling: "modelling" to "modeling"
javascript/ql/lib/semmle/javascript/internal/flow_summaries/Arrays.qll Fixed spelling: "modelled" to "modeled" and "behaviour" to "behavior"
javascript/ql/lib/semmle/javascript/frameworks/data/internal/ApiGraphModelsSpecific.qll Fixed spelling: "refering" to "referring"
javascript/ql/lib/semmle/javascript/frameworks/Babel.qll Removed unused private field by moving variable into exists clause
javascript/ql/lib/semmle/javascript/dataflow/internal/VariableCapture.qll Fixed spelling: "langauge" to "language"
javascript/ql/lib/semmle/javascript/dataflow/internal/DataFlowPrivate.qll Fixed spelling: "modelled" to "modeled"
javascript/ql/lib/semmle/javascript/dataflow/internal/BarrierGuards.qll Removed unused private field by moving variable into exists clause
javascript/ql/lib/semmle/javascript/dataflow/FlowSummary.qll Fixed spelling: "behaviour" to "behavior" and "modelled" to "modeled"

@michaelnebel michaelnebel merged commit 8009dde into github:main Sep 4, 2025
18 checks passed
@michaelnebel michaelnebel deleted the javascript/ql4ql branch September 4, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants